package com.corpcredit.webapp.action;

import java.io.Serializable;
import java.util.List;

import com.corpcredit.webapp.action.BasePage;
import com.corpcredit.model.Hgxx;
import com.corpcredit.service.GenericManager;

public class HgxxList extends BasePage implements Serializable {
    private GenericManager<Hgxx, Long> hgxxManager;

    public void setHgxxManager(GenericManager<Hgxx, Long> hgxxManager) {
        this.hgxxManager = hgxxManager;
    }

    public HgxxList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getHgxxs() {
        return sort(hgxxManager.getAll());
    }
}

